package com.gooluke.shorten.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.URL;

@ApiModel(description = "智能生成短链请求参数")
public class IntelligentGenerateRequest {
    @NotBlank(message = "原始URL不能为空")
    @URL(message = "URL格式不正确")
    @ApiModelProperty(value = "原始URL", required = true, example = "https://www.example.com/long/path")
    private String url;

    @ApiModelProperty(value = "生成策略: random/md5/seq", allowableValues = "random,md5,seq", example = "random")
    private String strategy = "random";

    @ApiModelProperty(value = "自定义域名", example = "s.example.com")
    private String domain;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getStrategy() {
        return strategy;
    }

    public void setStrategy(String strategy) {
        this.strategy = strategy;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }
}